home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / archiver / briksrc.zoo / makefile.ata < prev    next >
Makefile  |  1991-05-16  |  955b  |  44 lines

  1. # Makefile for brik
  2. # ::[[ @(#) makefile.nix 1.2 89/07/08 10:41:32 ]]::
  3.  
  4. # Please see brik.h for configuration options.
  5.  
  6. # Make sure this file is called "makefile" (rename it if necessary).  Then
  7. # type one of the following.
  8. #
  9. # "make"            -- makes brik in current directory
  10. # "make install"    -- makes brik, then moves it into DESTDIR defined below
  11. # "make clean"      -- deletes "core", objects, and executable
  12.  
  13. # Directory where we want to move executable brik on "make install"
  14. DESTDIR=/usr/local/bin/.
  15.  
  16. # CFLAGS and CMORE are flags for the C compiler. 
  17. # LDFLAGS and LDMORE are flags for the loader.
  18.  
  19. CFLAGS=-O -DDEBUG -DATARI
  20. LDFLAGS=
  21.  
  22. CC=gcc
  23. LD=gcc
  24.  
  25. .c.o :
  26.     $(CC) -c $(CFLAGS) $*.c
  27.  
  28. OBJS = atari.o brik.o initcrc.o addbfcrc.o
  29.  
  30. all:    brik.ttp
  31.  
  32. brik.ttp: $(OBJS)
  33.     $(LD) $(LDFLAGS) -o brik.ttp $(OBJS)
  34.  
  35. brik.o: brik.c brik.h assert.h
  36.  
  37. initcrc.o: initcrc.c brik.h
  38.  
  39. install: brik
  40.     mv brik.ttp $(DESTDIR)/brik.ttp
  41.  
  42. clean:
  43.     rm -f $(OBJS)  brik.ttp
  44.